package edu.arizona.sista.learn.model.groups;

import java.util.Collection;
import java.util.Set;


/**
 * A simple model of a group's formation.
 * 
 * @author Anh Tran
 *
 */
public class GroupFormation {
	
	private Set<Person> _participants;
	
	public GroupFormation(Set<Person> participants) {
		_participants = participants;
	}
	
	public Set<Person> participants() {
		return _participants;
	}
	
	public int size() {
		return _participants.size();
	}
	
	public boolean contains(Person p) {
		return _participants.contains(p);
	}
	
	public boolean containsAll(Collection<Person> p) {
		return _participants.containsAll(p);
	}
	
	@Override
	public String toString() {
		return _participants.size() + " members " + _participants.toString();
	}

}
